#!/usr/bin/env python3

from os import environ, path
from subprocess import call

if not environ.get('DESTDIR', ''):
    PREFIX = environ.get('MESON_INSTALL_PREFIX', '/usr')
    print('Compiling overridden schemas')
    call(['glib-compile-schemas', path.join(PREFIX, 'share', 'glib-2.0', 'schemas')])
